/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const sysRouter = {
  path: '/sys',
  component: Layout,
  redirect: '/sys/resource',
  name: 'sys',
  meta: {
    title: 'system',
    icon: 'xitongguanli'
  },
  children: [
    { path: 'resource', component: () => import('@/views/resource/index'), name: 'resource', meta: { title: 'resource', icon: 'ziyuanguanli', noCache: true }},
    { path: 'role', component: () => import('@/views/role/index'), name: 'role', meta: { title: 'role', icon: 'jiaoseguanli', noCache: true }},
    { path: 'account', component: () => import('@/views/account/index'), name: 'account', meta: { title: 'account', icon: 'yonghuguanli', noCache: true }},
    { path: 'organization', component: () => import('@/views/organization/index'), name: 'organization', meta: { title: 'organization', icon: 'bumenguanli', noCache: true }}
  ]
}

export default sysRouter
